package pl.put.augrelshooter.dataproviders;

import java.util.ArrayList;
import java.util.List;

import pl.put.augrelshooter.R;
import pl.put.augrelshooter.adapters.items.ColorItem;
import android.content.Context;

public class NewGameDataProvider {

	private Context context;
	private String selectedColor;

	public NewGameDataProvider(Context context) {
		this.context = context;
	}

	public ColorItem[] getAllColorItems() {
		List<ColorItem> colorItems = new ArrayList<ColorItem>();

		colorItems.add(new ColorItem(context.getResources().getString(R.string.color_red_green), context.getResources().getDrawable(R.drawable.red_green_icon)));
		colorItems.add(new ColorItem(context.getResources().getString(R.string.color_blue_yellow), context.getResources().getDrawable(R.drawable.blue_yellow_icon)));

		return colorItems.toArray(new ColorItem[0]);
	}

	public void setSelectedColor(String selectedColor) {
		this.selectedColor = selectedColor;
	}

	public String getSelectedColor() {
		return selectedColor;
	}
}
